package vo 
{
	import assets.UIAsset;
	/**
	 * ...
	 * @author lgyu
	 */
	public class MapVO 
	{
		private var _bg:MapObjectVO=  null
		private var _mapData:Object = { }
		private var _moList:Array = [] 
		private var _operatingMO:MapObjectVO = null
		public function MapVO() 
		{
			
		}
		
		public function set bg(value:MapObjectVO):void 
		{
			if (_bg != value) {
				_bg = value;
				initMapData()
			}
		}
		
		private function initMapData():void 
		{
			var moc:MOConfigVO = UIAsset.getConfigVoByTypeId(_bg.itemId)
			var sd:Array = moc.mask.split()
			var xs:int = sd[0]
			var ys:int = sd[1]
			var xe:int = sd[2]
			var ye:int = sd[3]
			for (var i= xs; i <= xe; i++ ) {
				for (var j = ys; i <= ye; i++ ) {
					_mapData["tile"+xs + "_"+ys] =0
				}
			}
		}
		
		
		private function initMOs():void {
			
		}
		
		
		public function clone():MapVO
		{
			return new MapVO();
		}
		
		public function get mapData():Object 
		{
			return _mapData;
		}
		
		public function set mapData(value:Object):void 
		{
			_mapData = value;
		}
		
		public function get moList():Array 
		{
			return _moList;
		}
		
		public function set moList(value:Array):void 
		{
			_moList = value;
		}
		
		public function get operatingMO():MapObjectVO 
		{
			return _operatingMO;
		}
		
		public function set operatingMO(value:MapObjectVO):void 
		{
			_operatingMO = value;
		}
		
		
		
	}

}